package p.ithorns.framework.common.thread;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * ThreadUncaughtExceptionHandler
 *
 * @author ithorns
 * @version 1.0
 * @date 2020/4/20 14:35
 */
public class ThreadUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler{

    private static final Logger log = LoggerFactory.getLogger(ThreadUncaughtExceptionHandler.class);

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        log.warn(e.getMessage(), e);
    }

}